// 导入挂载基地址后的axios
import Axios from '@/utils/request.js'

// 导出发送用户登录认证请求
export const login = data => Axios({ method: 'post', url: '/v1_0/authorizations', data })

// 导出发送验证码请求
export const sendYan = mobileNum => Axios({ url: `/v1_0/sms/codes/${mobileNum}` })

// 导出获取用户基本信息方法
export const getUserInfoAPI = () => Axios({ url: '/v1_0/user/profile' })

// 导出获取用户频道信息方法
export const getUserChannelListAPI = () => Axios({ url: '/v1_0/user/channels' })

// 导出获取所有频道信息方法
export const getAllChannelListAPI = () => Axios({ url: '/v1_0/channels' })
